<template>
	<list-scroll class="list-scroll" @loadmore="loadmore">
		<view class="">
			<list-card mode='base' v-for="(item,index) in list" :key="item._id" :item="item"></list-card>
		</view>
		<uni-load-more :status="load.loading || 'loading'" iconType="snow" v-if="list.length==0||list.length > 7"></uni-load-more>
	</list-scroll>
</template>

<script>
	export default {
		name: "list-item",
		props: {
			list: {
				type: Array,
				default () {
					return []
				}

			},
			load: {
				type: Object,
				default () {
					return {}
				}
			}
		},
		data() {
			return {

			};
		},
		methods: {
			loadmore() {
				this.$emit("loadmore")
			}
		}
	}
</script>

<style lang="scss">
	.list-scroll {
		height: 100%;
	}
</style>
